import { request } from '../utils/http-server';

export function getBannerList(data){
    return request({
        url: '/api/saleUserLogin/getBanner',
        method: 'get',
        data
    })
}

export function fundSiteInfo(data){
    return request({
        url: '/api/milk/index/fundSiteInfo',
        method: 'get',
        data
    })
}

export function getGoods(data){
    return request({
        url: '/api/milk/index/goods/V2',
        method: 'get',
        data
    })
}

export function getGoodsDetail(data){
    return request({
        url: '/api/milk/index/good/detail',
        method: 'get',
        data
    })
}

export function getGoodsSku(data){
    return request({
        url: '/api/milk/index/goods/getSku',
        method: 'get',
        data
    })
}

export function getExpressWay(data){
    return request({
        url: '/api/milk/index/expressWay',
        method: 'get',
        data
    })
}

export function getExpressAmount(data){
    return request({
        url: '/api/milk/index/expressAmount',
        method: 'get',
        data
    })
}

export function purchase(data){
    return request({
        url: '/api/milk/index/purchase/v3',
        method: 'post',
        data
    })
}
// /milk/index/purchase/v2


export function getOrderList(data){
    return request({
        url: '/api/milk/index/orderList',
        method: 'get',
        data
    })
}

export function getOrderDetail(data){
    return request({
        url: '/api/milk/index/orderDetail',
        method: 'get',
        data
    })
}

export function wxPay(data){
    return request({
        url: '/api/milk/wxPay/pay',
        method: 'post',
        data
    })
}














